//part1:C04:ex4.22.2.cpp
#include <iostream>
#include <string>
int main(void) {
  using namespace std;
  string finalgrade; 
  int grade;
  cout << "Enter your grade:\n";
  while (cin >> grade && grade >= 0 && grade <= 100) {
    if (grade > 90) {
      finalgrade = "high pass";
    }
    else if (grade > 75) {
      finalgrade = "pass"; 
    }
    else if (grade > 60) {
      finalgrade = "low pass";  
    }
    else
      finalgrade = "fail";
    cout << "the grade rank is: " << finalgrade << endl;
    cout << "Enter your grade:\n";
  }

  return 0;
}
